package com.dmap.run.controller.api;

import com.dmap.base.vo.BaseVo;
import com.dmap.run.controller.api.param.MapTrackParam;
import com.dmap.run.service.RunRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * \* User: silent
 * \* Date: 16/05/18 Time: 16:46
 * \* Description: 跑相关接口
 * \
 */
@Api(value = "跑步地图轨迹数据接口", description = "跑步地图轨迹数据接口")
@Controller
@RequestMapping(value = "/api/dmap-run-server/v1/run")
public class RunMapTrackController {
    @Resource
    private RunRecordService runRecordService;

    @ResponseBody
    @ApiOperation(value = "接受跑步地图轨迹数据接口", notes = "接受跑步地图轨迹数据接口")
    @RequestMapping(value = "/accept/map/track/data", method = RequestMethod.POST)
    public BaseVo accpectRunRecord(@RequestBody MapTrackParam param) {
        BaseVo baseVo = new BaseVo();


        return baseVo;
    }
}
